From: Ivan Molodetskikh Date: Thu, 9 Dec 2021 19:28:10 +0000 (+0300) Subject: screenshot-ui: Bind button to shot/cast X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~530^2^2~171 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=eb60fa290882d2808eaa6ff1eae3875280593fdb;p=gnome-shell.git screenshot-ui: Bind button to shot/cast Part-of: --- diff --git a/js/ui/screenshot.js b/js/ui/screenshot.js index 8c41f4efe..ce6ff26a2 100644 --- a/js/ui/screenshot.js +++ b/js/ui/screenshot.js @@ -1850,6 +1850,15 @@ class ScreenshotUI extends St.Widget { return Clutter.EVENT_STOP; } + if (symbol === Clutter.KEY_v || symbol === Clutter.KEY_V) { + if (this._shotButton.checked) + this._castButton.checked = true; + else + this._shotButton.checked = true; + + return Clutter.EVENT_STOP; + } + if (symbol === Clutter.KEY_Left || symbol === Clutter.KEY_Right || symbol === Clutter.KEY_Up || symbol === Clutter.KEY_Down) { let direction;